package snapex.core.mapper.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.SelectProvider;

import snapex.core.mapper.StaffInfoMapper;
import snapex.core.model.StaffInfo;

@Mapper
public interface StaffInfoMapperExt extends StaffInfoMapper {

    @SelectProvider(type=StaffInfoSqlProvider.class)
    @ResultMap("StaffInfoResult")
    List<StaffInfo> getApprover(String teamId, String authority);
    
    
    @SelectProvider(type=StaffInfoSqlProvider.class)
    @ResultMap("StaffInfoResult")
    List<StaffInfo> getParentApprover(String teamId, String authority); 
}
